# python code to draw a happy birthday using turtle
import turtle

name = input("Enter your name: ")

bg = turtle.Screen()
bg.bgcolor("black")

hbd = turtle.Turtle()
hbd.shape("turtle")
hbd.speed(8)

hbd.penup()
hbd.goto(-220, -210)
hbd.color("#d6291a")
hbd.pensize(6)
hbd.pendown()
hbd.goto(220, -210)
hbd.penup()

hbd.penup()
hbd.goto(-190, -180)
hbd.color("#22d6b8")
hbd.pensize(6)
hbd.pendown()
hbd.goto(190, -180)
hbd.penup()

hbd.penup()
hbd.goto(-160, -150)
hbd.color("#f0b222")
hbd.pensize(6)
hbd.pendown()
hbd.goto(160, -150)
hbd.penup()

hbd.penup()
hbd.goto(-130, -120)
hbd.color("#6fde50")
hbd.pensize(6)
hbd.pendown()
hbd.goto(130, -120)
hbd.penup()

hbd.goto(-74, -110)
hbd.pendown()
hbd.color("white")
hbd.goto(50, -110)
hbd.left(90)
hbd.forward(60)
hbd.left(90)
hbd.forward(125)
hbd.left(90)
hbd.forward(60)
hbd.penup()

hbd.goto(-20, -40)
hbd.color("#40f533")
hbd.pendown()
hbd.pensize(3)
hbd.goto(-20, -20)
hbd.penup()

hbd.goto(-40, -40)
hbd.color("#fcdc3d")
hbd.pendown()
hbd.pensize(3)
hbd.goto(-40, -20)
hbd.penup()

hbd.goto(20, -40)
hbd.color("#244ea3")
hbd.pendown()
hbd.pensize(3)
hbd.goto(20, -20)
hbd.penup()

hbd.goto(0, -40)
hbd.color("#ed39bd")
hbd.pendown()
hbd.pensize(3)
hbd.goto(0, -20)
hbd.penup()

hbd.goto(-200, 50)
hbd.color("white")
hbd.pendown()
design = ("Pristina", 30)

hbd.write(f" Happy   Birthday  {name}", font=design)

hbd.color("black")
hbd.goto(-100, 9)
hbd.color("#d6291a")
hbd.pendown()
layout = (19)

while True:
    hbd.penup()
    hbd.goto(-220, -210)
    hbd.color("#d6291a")
    hbd.pensize(6)
    hbd.pendown()
    hbd.goto(220, -210)
    hbd.penup()
